﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VRacer.Exceptions
{
    class CannotReadHighscoresException : UIException, IVRacerException
    {
         public CannotReadHighscoresException(Exception innerException)
            : this("This application can't find highscores for one of its tracks. Check if file is in place.", innerException)
        {

        }

         public CannotReadHighscoresException(string message, Exception innerException)
            : base(message, innerException)
        {
            Title = "Cannot find highscores";
            Code = 2;
            Details = "Vector Racer uses 'scores.xml' file to store its highscores information for track. This message means that this application can't access this file. It is possible that this file was accidentally moved or renamed, otherwise you might need to reinstall this track.";
        }

        #region IVRacerException Members

        public bool Critical
        {
            get { return true; }
        }

        #endregion
    }
}
